package com.shell.customer.base.service.impl;

import com.shell.bee.persistence.service.impl.PersistentServiceImpl;
import com.shell.customer.base.dao.CusAcctUseDao;
import com.shell.customer.base.service.CusAcctUseService;
import com.shell.customer.base.vo.AcctUseVo;
import com.shell.customer.po.CusAcct;
import com.shell.customer.po.CusAcctUse;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("pubAcctUseService")
public class AcctUseServiceImpl extends PersistentServiceImpl<CusAcctUse> implements CusAcctUseService {
	@Autowired
	private CusAcctUseDao cusAcctUseDao;

	public List<AcctUseVo> selectByAccts(List<CusAcct> accts) {
		return this.cusAcctUseDao.selectByAccts(accts);
	}

	public int deleteByCusId(String cusId, String userCode) {
		return this.cusAcctUseDao.deleteByCusId(cusId, userCode);
	}

	public void updateAcctNo(String newAcctNo, String oriAcctNo, String useCode) {
		this.cusAcctUseDao.updateAcctNo(newAcctNo, oriAcctNo, useCode);
	}
}
